package com.punai.standard.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.punai.standard.domain.StaFbFee;
import com.punai.standard.mapper.StaFbFeeMapper;
import com.punai.standard.service.IStaFbFeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 分包费用项Service业务层处理
 *
 * @author zxw
 * @date 2022-12-13
 */
@Service
public class StaFbFeeServiceImpl extends ServiceImpl<StaFbFeeMapper,StaFbFee> implements IStaFbFeeService
{
    @Autowired
    private StaFbFeeMapper staFbFeeMapper;

    /**
     * 查询分包费用项
     *
     * @param id 分包费用项主键
     * @return 分包费用项
     */
    @Override
    public StaFbFee selectStaFbFeeById(String id)
    {
        return staFbFeeMapper.selectStaFbFeeById(null,id);
    }

    /**
     * 查询分包费用项列表
     *
     * @param staFbFee 分包费用项
     * @return 分包费用项
     */
    @Override
    public List<StaFbFee> selectStaFbFeeList(StaFbFee staFbFee)
    {
        return staFbFeeMapper.selectStaFbFeeList(staFbFee);
    }

    /**
     * 新增分包费用项
     *
     * @param staFbFee 分包费用项
     * @return 结果
     */
    @Override
    public int insertStaFbFee(StaFbFee staFbFee)
    {
            return staFbFeeMapper.insert(staFbFee);
    }

    /**
     * 修改分包费用项
     *
     * @param staFbFee 分包费用项
     * @return 结果
     */
    @Override
    public int updateStaFbFee(StaFbFee staFbFee)
    {
        return staFbFeeMapper.updateById(staFbFee);
    }

    /**
     * 批量删除分包费用项
     *
     * @param ids 需要删除的分包费用项主键
     * @return 结果
     */
    @Override
    public int deleteStaFbFeeByIds(String[] ids)
    {
        return staFbFeeMapper.deleteStaFbFeeByIds(ids);
    }

    /**
     * 删除分包费用项信息
     *
     * @param id 分包费用项主键
     * @return 结果
     */
    @Override
    public int deleteStaFbFeeById(String id)
    {
        return staFbFeeMapper.deleteStaFbFeeById(id);
    }
}
